/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.cshoo.tattoo.authorize.api.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 杨翼
 * @since 1.0
 */
@Data
@ApiModel(value = "前端权限响应DTO")
public class FrontPermissionResp {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "类型, 0为菜单，1为文件夹菜单，2为按钮")
    private Integer type;

    @ApiModelProperty(value = "编号")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty(value = "前端权限孩子节点")
    private List<FrontPermissionResp> children;

}
